export const uploadAvator = () => {
  return {
    'code': 200,
    'message': '上传成功',
    'data': {
      'avator': 'https://pic.qqtn.com/up/2019-1/2019012709265098004.jpg'
    }
  }
}

export const getAccessList = () => {
  return {
    'code': 200,
    'message': '获取成功',
    'data': [
      {
        name: '管理员',
        value: 'Admin'
      },
      {
        name: '管理员2',
        value: 'Admin2'
      },
      {
        name: '管理员3',
        value: 'Admin3'
      },
      {
        name: '管理员5',
        value: 'Admin4'
      }
    ]
  }
}

export const addManageUser = () => {
  return {
    'code': 200,
    'message': '创建成功',
    'data': null
  }
}

export const getManageUser = () => {
  return {
    'code': 200,
    'message': '获取成功',
    'data': {
      'total': 100,
      'list': [
        {
          'manage_id': 1,
          'manage_name': '陈小莫',
          'manage_phone': '15659638071',
          'avator': 'https://pic.qqtn.com/up/2019-1/2019012709265098004.jpg',
          'access': 'admin',
          'create_time': '2019.02.18 16:29',
          'update_time': '2019.02.18 16:29',
          'create_ip': '127.0.0.1',
          'manage_state': true
        }, {
          'manage_id': 2,
          'manage_name': '陈小莫2',
          'manage_phone': '15659638071',
          'avator': 'https://pic.qqtn.com/up/2019-1/2019012709265098004.jpg',
          'access': 'admin',
          'create_time': '2019.02.18 16:29',
          'update_time': '2019.02.18 16:29',
          'create_ip': '127.0.0.1',
          'manage_state': true
        }, {
          'manage_id': 3,
          'manage_name': '陈小莫3',
          'manage_phone': '15659638071',
          'avator': 'https://img2.woyaogexing.com/2019/02/17/fb7aa07dcef043cc981230d308e610aa!400x400.jpeg',
          'access': 'admin',
          'create_time': '2019.02.18 16:29',
          'update_time': '2019.02.18 16:29',
          'create_ip': '127.0.0.1',
          'manage_state': true
        }, {
          'manage_id': 4,
          'manage_name': '陈小莫4',
          'manage_phone': '15659638071',
          'avator': 'https://pic.qqtn.com/up/2019-1/2019012709265098004.jpg',
          'access': 'admin',
          'create_time': '2019.02.18 16:29',
          'update_time': '2019.02.18 16:29',
          'create_ip': '127.0.0.1',
          'manage_state': false
        }
      ]
    }
  }
}

export const setManageState = () => {
  return {
    'code': 200,
    'message': '操作成功',
    'data': {
      'manage_state': true
    }
  }
}

export const delManageUser = () => {
  return {
    'code': 200,
    'message': '操作成功',
    'data': null
  }
}

export const editManageUser = () => {
  return {
    'code': 200,
    'message': '编辑成功',
    'data': null
  }
}
